package com.harmonyos.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 *
 * @TableName tb_fourm
 */
@TableName(value ="tb_fourm")
@Data
public class TbFourm implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    /**
     *
     */
    private Integer id;

    private Integer tzid;

    private String user;

    /**
     *
     */
    private String text;

    /**
     *
     */
    private String time;

    /**
     *
     */
    private Integer dianzan;


    /**
     *
     */
    private String pinglun;
    @TableLogic
    private  int deleted;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbFourm tbFourm = (TbFourm) o;
        return Objects.equals(id, tbFourm.id) &&
                Objects.equals(tzid, tbFourm.tzid) &&
                Objects.equals(user, tbFourm.user) &&
                Objects.equals(text, tbFourm.text) &&
                Objects.equals(time, tbFourm.time) &&
                Objects.equals(dianzan, tbFourm.dianzan) &&
                Objects.equals(pinglun, tbFourm.pinglun);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, tzid, user, text, time, dianzan, pinglun);
    }

    @Override
    public String toString() {
        return "TbFourm{" +
                "id=" + id +
                ", tzid=" + tzid +
                ", user='" + user + '\'' +
                ", text='" + text + '\'' +
                ", time='" + time + '\'' +
                ", dianzan=" + dianzan +
                ", pinglun='" + pinglun + '\'' +
                '}';
    }
}
